mui.init();

mui.ready(function(){
	var gallery = mui('.mui-slider');
	gallery.slider({
	  interval:5000//自动轮播周期，若为0则不自动播放，默认为0；
	});
	
	var picker = new mui.PopPicker();
	picker.setData([{
	    value: "white",
	    text: "白色"
	}, {
	    value: "black",
	    text: "黑色"
	}, {
	    value: "brown",
	    text: "棕色"
	}, {
	    value: "green",
	    text: "绿色"
	}, {
	    value: "blue",
	    text: "蓝色"
	}]);
	
	//选择颜色
	document.getElementById('select_color').addEventListener('tap', function() {
		picker.show(function(e) {
			jQuery("#select_color_name").html(e[0].text + '');
		});
	});
	
	mui('.data-box-wrapper').scroll({
		deceleration: 0.0005
	});
})









